package com.hzw.saas.common.security.pojo.dto;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzl
 * @since 12/25/2020
 */
@Data
@ApiModel(value = "用户token", description = "用户登录后获取的访问token")
public class OAuth2AccessTokenDto {

    @ApiModelProperty(value = "访问token", position = 1)
    private String access_token;

    @ApiModelProperty(value = "token类型", position = 2)
    private String token_type;

    @ApiModelProperty(value = "刷新token", position = 3)
    private String refresh_token;

    @ApiModelProperty(value = "过期时间", position = 4)
    private long expires_in;

    @ApiModelProperty(value = "用户ID", position = 5)
    private String userId;

    @ApiModelProperty(value = "用户名", position = 6)
    private String username;

    @ApiModelProperty(value = "邮箱", position = 7)
    private String email;

    @ApiModelProperty(value = "手机号", position = 8)
    private String phoneNo;

    @ApiModelProperty(value = "用户权限列表", position = 9)
    private List<AuthorityDto> authorities;

}
